//podlaczanie do modulu posr
//klasy zarzadzajace polaczeniem dla kazdego modulu beda dziedziczyć z tej klasy
import java.net.Socket;

public class Connection {
protected Socket socket;
protected Socket awaryjnySocket;

private ConnectionReader reader;
private ConnectionWriter writer;

public Connection(Socket s) {
	try {
	socket = s;
	reader = null;
	writer = null;
	} catch (Exception e) {};
}

public void setReader(ConnectionReader r) {
	reader = r;
}

public void setWriter(ConnectionWriter w) {
	writer = w;
}

protected void connectionClosed() {
	//TU MA BYC OBSLUGA AWARII
}

public void invokeLater(Runnable runnable) {};
}